﻿/*
 * File: MapCell.cs
 * Developer : Brent Larsen (brentoboy@gmail.com)
 * Date: 2011-AUG-9
 * Copyright (c) 2011 Brent Larsen.
 * Distributed under the terms of the GPL v3
 *  
 * This file is part of GenX-RPG
 * http://code.google.com/p/genx-rpg/ 
 * 
 * GenX-RPG is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * GenX-RPG is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with GenX-RPG.  If not, see <http://www.gnu.org/licenses/>.
 */


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rpg
{
    public class MapCell : IStep
    {
        public int Id { get; set; }
        public int MapId { get; set; }
        public int X { get; set; }
        public int Y { get; set; }
        public int TileId { get; set; }
        public int Walk { get; set; }
        public int State { get; set; }

        public MapCell(int id, int mapId, int x, int y, int tileId, int walk, int state)
        {
            this.Id = id;
            this.MapId = mapId;
            this.X = x;
            this.Y = y;
            this.TileId = tileId;
            this.Walk = walk;
            this.State = state;
            //this.UpdateTileDetails();
        }

        //public void UpdateTileDetails()
        //{
            //TODO: fix this
            //Tile tile = Tile.Get(this.TileId);
            //this.Tile_BmpName = 
            //this.Tile_BmpX = tile.BmpX;
            //this.Tile_BmpY = tile.BmpY;
        //}
    }
}
